﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MWRCommunicationLibrary.ARS408
{
    public class Out_CollDetRegionState : MWRData
    {
        public override int DefaultCanID
        {
            get
            {
                return 0x402;
            }
        }

        public override int Length
        {
            get
            {
                return 8;
            }
        }

        /// <summary>
        /// 0x0: no 
        /// warning 
        /// 0x1: object
        /// warning 
        /// 0x2: unused 
        /// 0x3: warning
        /// deactivated
        /// </summary>
        [ParamDecodor(3, 2)]
        public int WarningLevel { get; set; }

        [ParamDecodor(5, 3)]
        public int RegionID { get; set; }

        [ParamDecodor(19, 13, 0.2, -500)]
        public double Point1X { get; set; }

        [ParamDecodor(24, 11, 0.2, -204.6)]
        public double Point1Y { get; set; }

        [ParamDecodor(43, 13, 0.5, -500)]
        public double Point2X { get; set; }

        [ParamDecodor(48, 11, 0.2, -204.6)]
        public double Point2Y { get; set; }

        [ParamDecodor(56, 8)]
        public int NofObjects { get; set; }
    }
}
